package org.jeecg.modules.iot.model.cabinet;



import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.List;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class CabinetHeartbeatData {
    private String sn;
    private String type;
    private String code;
    private String device;
    private int batnum;
    private int canswap;
    private int dcsfault;
    private List<DoorInfo> door;
    private List<int[]> charger;
    private boolean alarm;
    private int[] slave;
    private int runtime;

    // Getters and Setters
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class DoorInfo {
        private boolean timeout;
        private String color;
        private String batSN;
        private int soc;
        private int fault_type;

        // Getters and Setters
    }
}